import Vue from "vue"
import VueRouter from "vue-router"

Vue.use(VueRouter)

const routes = [
  {
    path: "/detail",
    name: "yang",
    component: () => import("@/pages/detail")
  },
  {
    path: "/list",
    name: "ruby",
    component: () => import("@/pages/list")
  },
  {
    path: "*",
    component: () => import("@/pages/page404")
  }
]

const router = new VueRouter({
  routes
})

export default router
